package com.aurora.supermarket.base;

import java.io.File;
import java.util.List;
import java.util.Map;

public interface IBaseModel {
    <T> void sendRequestToServerObject(String apiInterface, Map params, CallBack<T> callBack, Class<T> clazz);
    <T> void sendRequestToServerList(String apiInterface, Map params, CallBack<List<T>> callBack, Class<T> clazz);
   void sendRequestToServer(String apiInterface, Map params,JsonCallback callBack);
    void sendPicToServer(String apiInterface, Map params, File file, JsonCallback callBack);
    void setMethod(RequestMethod method);
    void setTag(String tag);
    void cancelRequest(String tag);
}